home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Views / Arrangements / ConstArrangementLoop.cp < prev    next >
Encoding:
Text File  |  1997-06-28  |  415 b   |  20 lines  |  [TEXT/CWIE]

  1. // ConstArrangementLoop.cp
  2.  
  3. #ifndef ConstArrangementLoop_h
  4. #include "ConstArrangementLoop.h"
  5. #endif
  6.  
  7. ConstArrangementLoop::ConstArrangementLoop( const ArrangementBase& theArrangement )
  8.   : arrangement( theArrangement ),
  9.      index( 0 )
  10.   {
  11.     for ( ; Unfinished() && (*this)->IsEmpty(); index++ )
  12.         ;
  13.   }
  14.  
  15. void ConstArrangementLoop::operator++()
  16.   {
  17.     for ( index++; Unfinished() && (*this)->IsEmpty(); index++ )
  18.         ;
  19.   }
  20.